package cn.com.cifi.mars.service.impl;

import java.io.UnsupportedEncodingException;
import java.time.LocalDateTime;
import java.util.Base64;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import cn.com.cifi.mars.bean.bo.approval.ApprovalSubmitBO;
import cn.com.cifi.mars.common.exception.MsgException;
import cn.com.cifi.mars.constant.ApprovedStateCodeEnum;
import cn.com.cifi.mars.constant.CodeEnum;
import cn.com.cifi.mars.util.RequestUtil;
import cn.com.cifi.mars.util.UUIDUtils;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.com.cifi.mars.entity.ApprovalBill;
import cn.com.cifi.mars.entity.ApprovalBillDetail;
import cn.com.cifi.mars.mapper.mars.ApprovalBillDetailMapper;
import cn.com.cifi.mars.mapper.mars.ApprovalBillMapper;
import cn.com.cifi.mars.service.ApprovalBillDetailService;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Service
public class ApprovalBillDetailServiceImpl extends ServiceImpl<ApprovalBillDetailMapper,ApprovalBillDetail> implements ApprovalBillDetailService {
    @Autowired
    ApprovalBillDetailMapper approvalBillDetailMapper;
    @Autowired
    private ApprovalBillMapper approvalBillMapper;


    @Override
    public List<ApprovalBillDetail> selectApprovalBillDetail(String businessKey) {
        return approvalBillDetailMapper.selectApprovalBillDetail(businessKey);
    }

}
